import request from '@/utils/request'

// 查询设备绑定解绑列表
export function listDevicebind(query) {
  return request({
    url: '/devicebind/devicebind/list',
    method: 'get',
    params: query
  })
}

// 查询设备绑定解绑详细
export function getDevicebind(correctionuserId) {
  return request({
    url: '/devicebind/devicebind/' + correctionuserId,
    method: 'get'
  })
}

// 新增设备绑定解绑
export function addDevicebind(data) {
  return request({
    url: '/devicebind/devicebind',
    method: 'post',
    data: data
  })
}

// 修改设备绑定解绑
export function updateDevicebind(data) {
  return request({
    url: '/devicebind/devicebind',
    method: 'put',
    data: data
  })
}

// 删除设备绑定解绑
export function delDevicebind(correctionuserId) {
  return request({
    url: '/devicebind/devicebind/' + correctionuserId,
    method: 'delete'
  })
}


// 设备解绑
export function unBind(correctionuserId) {
  return request({
    url: '/devicebind/devicebind/' + correctionuserId,
    method: 'put'
  })
}
